import request from '@/utils/request'

// 查询活动场地列表
export function listVenues(query) {
  return request({
    url: '/education/Venues/list',
    method: 'get',
    params: query
  })
}

// 查询活动场地详细
export function getVenues(venueId) {
  return request({
    url: '/education/Venues/' + venueId,
    method: 'get'
  })
}

// 新增活动场地
export function addVenues(data) {
  return request({
    url: '/education/Venues',
    method: 'post',
    data: data
  })
}

// 修改活动场地
export function updateVenues(data) {
  return request({
    url: '/education/Venues',
    method: 'put',
    data: data
  })
}

// 删除活动场地
export function delVenues(venueId) {
  return request({
    url: '/education/Venues/' + venueId,
    method: 'delete'
  })
}
